﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SortProduct.ascx.cs" Inherits="HCFramework.Product.FrontEndControl.SortProduct" %>
<%=M.Common.GetLang("Sắp xếp theo") %>:
<asp:DropDownList CssClass="comboSortProduct" ID="DropDownList1" runat="server">
    <asp:ListItem Value="1">Mới nhất trước</asp:ListItem>
    <asp:ListItem Value="2">Cũ nhất trước</asp:ListItem>
    <asp:ListItem Value="3">Giá thấp đến cao</asp:ListItem>
    <asp:ListItem Value="4">Giá cao đến thấp</asp:ListItem>
</asp:DropDownList>
<script type="text/javascript">
    $(document).ready(function () {
        $("select.comboSortProduct").change(function () {
            var sort = $(this).find("option[selected=true]").val();
            var url = document.URL;
            url = SetPara(url, "sort", sort);
            window.location = url;
        });
    });
</script>
